package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetSurveyListResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2016-11-11   上午11:42:02
 */
@XmlRootElement
public class GetSurveyListResp extends SuperResp{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5078776182370974980L;
	private Integer recordSize;
	private List<SurveyInfo> surveyInfos;
	
	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	public List<SurveyInfo> getSurveyInfos() {
		return surveyInfos;
	}

	public void setSurveyInfos(List<SurveyInfo> surveyInfos) {
		this.surveyInfos = surveyInfos;
	}

	@Override
	public String toString() {
		return "GetSurveyListResp [getResultCode()=" + getResultCode()
				+ ", getResultDesc()=" + getResultDesc() + "]";
	}

	public static class SurveyInfo implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = -5537666688594133825L;
		private String code;
		private String title;
		private Integer type;
		private String profile;
		private String startTime;
		private String endTime;
		private Long cpCode;
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public Integer getType() {
			return type;
		}
		public void setType(Integer type) {
			this.type = type;
		}
		public String getProfile() {
			return profile;
		}
		public void setProfile(String profile) {
			this.profile = profile;
		}
		public String getStartTime() {
			return startTime;
		}
		public void setStartTime(String startTime) {
			this.startTime = startTime;
		}
		public String getEndTime() {
			return endTime;
		}
		public void setEndTime(String endTime) {
			this.endTime = endTime;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
	}
}

